<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查询</title>
</head>
<body>
<div style="margin:0 auto;
border:2px solid black;
width:700px;
padding:20px;">
<form action="/search" method="post">
    {% csrf_token %}
    查询条件：姓名<input type="text"  value="{{name}}" name="name">
    成绩<input type="text" value="{{score}}" name="score">
    班级<input type="text" value="{{classroom}}" name="classroom">
    <input type="submit">
</form>
<a href="/table" target="_blank">返回列表页</a>
<table style="margin:0 auto;" cellspacing="0" border="1" cellpadding="5">
    <thead>
    <tr>
    <th>姓名</th>
    <th>成绩</th>
    <th>班级</th>
    <th>技术</th>
        <th>简介</th>
    </tr>
    </thead>
    <tbody>
    {% for c in content%}
    <tr>
        <td>{{c.username}}</td>
        <td>{{c.score}}</td>
        <td>{{c.classroom}}</td>
        <td>{{c.skills}}</td>
        <td>{{c.desc}}</td>
    </tr>
    {% endfor %}
    </tbody>
</table>
</div>
</body>
</html>